-- inherit_vine_shield
-- created by dengc
-- 继承技能上阶段提升的属性

return {
    apply = function(source, target, skillId, round, para, extra)
        local addon = 0;

        -- 魔法抗性
        local resistProp = PropM.combine(source, "resist", "magic");
        local prop = PropM.combine(source, "inherit_vine_shield", "1");
        addon = PropM.trigger(source, prop[1], prop[2], resistProp);
        
        -- 记录
        if addon ~= 0 then
            PropM.record(source, {resistProp[1], resistProp[2], addon, resistProp[4]}, "skill");
        end

        -- 物理反伤
        addon = 0;
        local reflexProp = PropM.combine(source, "reflex_damage", "1");
        addon = PropM.trigger(source, prop[1], prop[2], reflexProp);
        
        -- 记录
        if addon ~= 0 then
            PropM.record(source, {reflexProp[1], reflexProp[2], addon, reflexProp[4]}, "skill");
        end

        -- 作用目标
        return { target, };
    end,

    parse = function(desc)
        local arr = string.explode(desc, ",");
        return {};
    end,

    -- 解析技能描述
    parseDesc = function(source, skillId, desc, para)
        return desc;
    end,
};
